{% if form.errors %}
    <div class="form-errors">
        {% for field in form %}
            {% for error in field.errors %}
                <p class="form-error red-color"><strong>*{{ error|escape }}</strong></p>
            {% endfor %}
        {% endfor %}
        {% for error in form.non_field_errors %}
            <p class="form-error red-color"><strong>*{{ error|escape }}</strong></p>
        {% endfor %}
    </div>
{% endif %}
{# Form design is borrowed from "http://www.sanwebe.com/2014/08/css-html-forms-designs" #}
<form class="djacket-form" action="/{{repo_owner}}/{{repo.name}}.git/area51" role="form" method="POST">
    {% csrf_token %}
    <ul>
        <li>
            <label for="confirmed_deletion">Confirm Repository Deletion</label>
            <input id="id_confirmed_deletion" name="confirmed_deletion" type="radio" value="true">Yes</input>
            <input id="id_confirmed_deletion" name="confirmed_deletion" type="radio" value="false" checked>No</input>
            <span class="red-color last-span">You are stepping into Area 51, there is no going back.</span>
        </li>
        <li>
            <input class="danger" type="submit" value="Delete This Repository">
        </li>
    </ul>
</form>
{# Form design is borrowed from "http://www.sanwebe.com/2014/08/css-html-forms-designs" #}
